home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 19
/
Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso
/
Aminet
/
comm
/
cnet
/
cnet_who.lha
/
who
/
Upgrade271
< prev
next >
Wrap
Text File
|
1997-04-26
|
2KB
|
52 lines
/**************************************************************************\
$VER: CNet WHO Upgrade v2.71 (26-Apr-97) by Dotoran!
\**************************************************************************/
options results;signal on SYNTAX;signal on ERROR;signal on IOERR
a=sourceline(2);parse var a . . . . . ", "ver" ("vdate")" .
tr=transmit;se=sendstring;gc=getchar;gu=getuser;gs=getscratch;mg=maygetchar
a="rexxsupport.library";if ~show("l",a) then if ~addlib(a,0,-30) then exit
parse source . . fp .;dp=left(fp,max(lastpos('/',fp),lastpos(':',fp)))
se "n1Converting CNet Amiga Who config file to "ver"...n2"
se "You must FIRST be using CNet Amiga Who, v2.65 BEFORE using this update "
se "script. If using v2.66 or higher, you do NOT need to run this update. "
se "Is it alright to continue? [No]: ";gc;a=result
if a~="Y" then do;tr "No.";exit;end;else tr "Yes!"
cfg=dp"Config.data"
if ~exists(cfg) then do
se "n2I could not locate the `Config.data' file. This upgrade script "
se "should be located inside the `Who/' directory before being used "
tr "for the first time.n1" ; exit ; end
call open(f1,dp"MakeWho","r");do 2;a=readln(f1);end;call close(f1)
if word(a,3)~="v2.65" then do
se "n2According to your `MakeWho' file, you are NOT running version 2.65 "
se "of CNet Amiga Who, but in fact are using "word(a,3)". Please install "
se "v2.65 fully before continuing...n1" ; exit ; end
se "Converting CTRL-A's in the `Config.data' file to CTRL-S's..."
call open(f1,cfg,"r")
call open(f2,cfg"2","w")
do i=1 until eof(f1)
a=readln(f1)
call writeln(f2,translate(a,"",d2c(1)))
end i
call close(f2)
call close(f1)
address command "delete "cfg ; address command "rename "cfg"2 "cfg
tr "Completed!n1"
exit
SYNTAX:;ERROR:;IOERR:;e1="n1 Error: "rc" ("errortext(rc)")"
e2=" Line: "left(sigl,4)"File:";c="`"fp", "ver"'";e2=e2" "c;tr e1;tr e2
logentry e1;logentry e2;e=strip(translate(sourceline(sigl),"\{",""))
do while e~="";e3="Source: "left(e,37);tr e3;logentry e3;e=substr(e,38);end
bufferflush
/**************************************************************************\
\****************************************** Frontiers BBS (716)/823-9892 **/